<template>
  <cml-module :moduleName="$t('cmlpanel.layout')"
    icon="buju"
    v-bind="$attrs">
    <!-- custom -->
    <!-- <custom-layout v-cml></custom-layout> -->
    <component v-for="(name, index) in $_auth"
      :key="index"
      :is='name'></component>
  </cml-module>
</template>
<script>
import { mapGetters, mapMutations } from 'vuex'
import { Switch } from 'ant-design-vue'
import CmlModule from '../cml-module'
import CustomLayout from './customLayout'

export default {
  name: 'Layout',
  components: {
    ASwitch: Switch,
    CmlModule,
    CustomLayout
  },
  model: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  beforeDestroy() {},
  methods: {}
}
</script>
<style lang="scss" scoped>
@import '@/assets/css/panel-var.scss';
@import '@/assets/css/panel-mixin.scss';
</style>
